/*
 * Grid
 */
@item-b-color: transparent;
@item-bg-color: #FFFFFF;

@item-hover-b-color: #3FA9F5;
@item-select-b-color: #5bc0de;

.grid-item-size(@width:180px, @height:180px, @margin:3px, @padding:3px){
    width: @width;
    height: @height;
    margin: @margin;
    padding: @padding;
}

.c-list-view {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: auto;
    width: 100%;
    font-size: 1.4rem;
    /*border: 1px solid rgba(236, 233, 233, 0.67);*/

    &.no-data{
        display: none;
    }

    &.default {
        border: 1px solid #d8d8d8;;
        padding: 3px 0px;
        border-radius: 3px;
        color: #333333;
        &>*{
            padding: 0px 6px;
            cursor: pointer;
            /*
            margin: 3px;
            background-color: @item-bg-color;
            */
            /*
            &:first-child{
                border-radius: 3px 3px 0 0;
            }

            &:last-child{
                border-radius: 0 0 3px 3px;
            }*/

            &:hover {
                color: #FFFFFF;
                background-color: @item-hover-b-color !important;
            }
            &.curr{
                background-color: @item-select-b-color;
                color: #fff;
            }
        }
    }

    &.grid{
        &.s1>*{
            .grid-item-size(48px, 48px, 3px, 3px);
        }
        &>*{
            float: left;
            border: 2px solid @item-b-color;
            /*background-color: @item-bg-color;*/

            -webkit-transition: 0.3s ease-out;
            -moz-transition: 0.3s ease-out;
            -o-transition: 0.3s ease-out;
            transition: 0.3s ease-out;
            .grid-item-size();

            &:hover {
                border-color: @item-hover-b-color;
            }
        }
    }

    &.icon-list{
        &>*{
            float: left;
            text-align: center;
            &>div{border: 1px solid red;}
            .fa{
                font-size: 3.8rem;
            }
            .grid-item-size(60px, 60px, 6px, 2px);

            &:hover {
                color: @item-hover-b-color;
            }
        }
    }

    &.table{
        &>*{
            float: left;
            width: 200px;
            height: 200px;
            margin: 3px;
            padding: 3px;
            border: 2px solid @item-b-color;
            background-color: @item-bg-color;

            &:hover {
                border-color: @item-hover-b-color;
            }
        }
    }

    &.tab{
        overflow: hidden;
        width: auto;
        float: left;
        margin: 4px;
        &>*{
            border: 1px solid #3FA9F5;
            border-left: none;
            color: #3FA9F5;
            float: left;
            width: auto;
            height: 20px;
            padding: 3px;
            min-width: 80px;
            text-align: center;
            cursor: pointer;

            &:first-child{
                border-left: 1px solid #3FA9F5;
                border-radius: 3px 0 0 3px;
            }

            &:last-child{
                border-radius: 0 3px 3px 0;
            }

            &:hover {
                border-color: @item-hover-b-color;
            }

            &.curr{
                background-color: @item-select-b-color;
                color: #fff;
            }
        }
    }


    &.tab-1{
        overflow: hidden;
        width: auto;
        float: none;
        margin: 4px;
        padding-left: 10px;
        border-bottom: 1px solid #3FA9F5;
        &>*{
            border-right: 1px solid #3FA9F5;
            border-top: 1px solid #3FA9F5;
            border-left: none;
            color: #3FA9F5;
            float: left;
            width: auto;
            height: 20px;
            padding: 3px 8px;
            min-width: 80px;
            text-align: center;
            cursor: pointer;

            &:first-child{
                border-left: 1px solid #3FA9F5;
                border-radius: 3px 0 0 0px;
            }

            &:last-child{
                border-radius: 0 3px 0px 0;
            }

            &:hover {
                border-color: @item-hover-b-color;
            }

            &.curr{
                background-color: @item-select-b-color;
                color: #fff;
            }
        }
    }

}
